﻿using DMS.Common.Model.Result;
using SqlSugar.Template.IService.Param;
using SqlSugar.Template.IService.Result;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SqlSugar.Template.IService
{
    /// <summary>
    /// 接口操盘详情
    /// </summary>
    public interface IBookService
    {     /// <summary>
          /// 异步新增
          /// </summary>
          /// <param name="param"></param>
          /// <returns></returns>
        Task<ResponseResult> Add(AddBookParam param);

        /// <summary>
        /// 事物处理
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        Task<ResponseResult> AddTran(AddBookParam param);

        /// <summary>
        /// 异步修改
        /// </summary>
        /// <returns></returns>
        Task<ResponseResult> UpdateAsync(EditBookParam param);

        /// <summary>
        /// 异步删除
        /// </summary>
        /// <returns></returns>
        Task<ResponseResult> DeleteAsync(long BookId);

        /// <summary>
        /// 异步查询
        /// </summary>
        /// <returns></returns>
        Task<ResponseResult<PageModel<BookResult>>> SearchBookAsync(SearchBookParam param);

        /// <summary>
        /// 异步查询
        /// </summary>
        /// <returns></returns>
        Task<ResponseResult<BookResult>> GetBookAsync(long BookId);
    }
}
